Cannot load report while designer is being shown in a control
In form's constructor, after InitizalizeComponent(), this code displays the designer on the form being created:
  public partial class Form1 : Form
  {
    public Form1()
    {
      InitializeComponent();
      report.Designer = new Designer(report);
      report.Designer.ShowInPanel(this);
    }
    public void LoadReport(string filename)
    {
      report.Load(filename);
    }
  }
then form's LoadReport method is called after the form's creation and, while report.Load(filename) is being excuted, some random named object (thx to obfuscation) causes null reference exception. Any ideas?
Comments